<?php
/**
 * Created by PhpStorm.
 * User: Steven
 * Date: 2017/6/9
 */

namespace app\educational\validate;


use think\Validate;

class StudentScoreValidate extends Validate
{
    protected $rule = [
//        ['school_id', 'require|gt:0', '学校不能为空|请选择学校'],
//        ['class_id', 'require|gt:0', '班级不能为空|请选择班级'],
//        ['student_id', 'require|gt:0', '学生不能为空|请选择学生'],
        ['question1', 'require|egt:0', '第一题不能为空|请输入正确的分数'],
        ['question2', 'require|egt:0', '第二题不能为空|请输入正确的分数'],
        ['question3', 'require|egt:0', '第三题不能为空|请输入正确的分数'],
        ['question4', 'require|egt:0', '第四题不能为空|请输入正确的分数'],
        ['question5', 'require|egt:0', '第五题不能为空|请输入正确的分数'],
        ['question6', 'require|egt:0', '第六题不能为空|请输入正确的分数'],
        ['extra_score', 'egt:0', '请输入正确的分数'],
        ['total_score', 'require|egt:0', '总分不能为空|请输入正确的分数'],
    ];

}